var n = getApp();

Page({
    data: {},
    bindClickMyWeb: function() {
        wx.navigateTo({
            url: "myweb/myweb"
        });
    },
    bindClickPrivate: function() {
        wx.navigateTo({
            url: "privacy/privacy"
        });
    },
    bindClickShare: function() {
        console.log("share"), wx.showShareMenu({});
    },
    bindClickLogout: function() {
        wx.showModal({
            title: "提示",
            content: "确定退出登录？",
            success: function(o) {
                o.confirm && (console.log("用户点击确定"), n.util.logout());
            }
        });
    },
    onLoad: function(n) {},
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        var o = n.util.getShareInfo();
        return {
            title: n.globalData.commonShareTitle,
            path: o[0],
            imageUrl: o[1],
            success: function(n) {},
            fail: function(n) {}
        };
    }
});